package com.kid.keep.dao.child;


import com.kid.keep.po.Child;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description Child mapper
 * @Author JOHN
 * @Create 2019-01-10
 * @Since 1.0.0
 */
public interface IChildMapper extends BaseMapper<Child> {
    /**
     * 获取最新小孩的信息
     * @param parentId
     * @param dataStatus
     * @return
     */
    Child findNewestChildByParentIdAndDataStatus(@Param("parentId") Long parentId, @Param("dataStatus") Integer dataStatus);
}
